<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="model.JsfStaff"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>查找用户</title>
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>
<%
	JsfStaff staff = (JsfStaff) session.getAttribute("staff");
	int ps = staff.getStatus();
%>

<body
	style="font-family:Verdana, Geneva, sans-serif; color:#010; font-size: 18px; font-weight: bold;">
	<center>
		<s:form action="client_findById" method="post" onsubmit="return check()" name="f1">
			<tr><td>请输入用户ID：</td><td><input type="text" name="clientId"></td></tr>
			<tr><td><input type="submit" value="查找" class="btn btn-info"/></td>
		</s:form>
	</center>
	<script type="text/javascript">
  function check(){
		var clientId = document.f1.clientId;
		var reNum =/^[0-9]+$/;
		if(clientId.value==""){
			alert("必填项不能为空！");
			return false;
		}
		if(!reNum.test(clientId.value)){
			alert("“必须为数字！");
			return false;
		}
		
		else{
			return true;
		}
	}
    </script>
</body>
</html>
